<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试代码转换</title>
    <style>
        body {
            text-align: center;
        }
    </style>
</head>
<body>
<img src="img/1.jpg" id="picture" width="370px"/>
</body>
</html>
<script src="make-money.js">
    document.getElementById("before").onclick=function (){
        picture.src=`img2/${m}.jpg`;
        if(m==4){
            m=0;
        }
        else {
            m++;
        }
    }
    document.getElementById("after").onclick=function (){
        picture.src=`img2/${m}.jpg`;
        if(m==0){
            m=4;
        }
        else {
            m--;
        }
    }
    alert()
</script>